package org.dfzt.modules.online.cgform.link;

public class LinkDown {
    private String table;
    private String txt;
    private String key;
    private String linkField;

    public void setTable(String table) {
        this.table = table;
    }

    private String idField;
    private String pidField;
    private String pidValue;
    private String condition;

    public void setTxt(String txt) {
        this.txt = txt;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setLinkField(String linkField) {
        this.linkField = linkField;
    }

    public void setIdField(String idField) {
        this.idField = idField;
    }

    public void setPidField(String pidField) {
        this.pidField = pidField;
    }

    public void setPidValue(String pidValue) {
        this.pidValue = pidValue;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof LinkDown)) return false;
        LinkDown a1 = (LinkDown) o;
        if (!a1.a(this)) return false;
        String str1 = getTable(), str2 = a1.getTable();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false;
        String str3 = getTxt(), str4 = a1.getTxt();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false;
        String str5 = getKey(), str6 = a1.getKey();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false;
        String str7 = getLinkField(), str8 = a1.getLinkField();
        if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false;
        String str9 = getIdField(), str10 = a1.getIdField();
        if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false;
        String str11 = getPidField(), str12 = a1.getPidField();
        if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false;
        String str13 = getPidValue(), str14 = a1.getPidValue();
        if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false;
        String str15 = getCondition(), str16 = a1.getCondition();
        return !((str15 == null) ? (str16 != null) : !str15.equals(str16));
    }

    protected boolean a(Object paramObject) {
        return paramObject instanceof LinkDown;
    }

    public String toString() {
        return "LinkDown(table=" + getTable() + ", txt=" + getTxt() + ", key=" + getKey() + ", linkField=" + getLinkField() + ", idField=" + getIdField() + ", pidField=" + getPidField() + ", pidValue=" + getPidValue() + ", condition=" + getCondition() + ")";
    }


    public String getTable() {
        return this.table;
    }

    public String getTxt() {
        return this.txt;
    }

    public String getKey() {
        return this.key;
    }

    public String getLinkField() {
        return this.linkField;
    }

    public String getIdField() {
        return this.idField;
    }

    public String getPidField() {
        return this.pidField;
    }

    public String getPidValue() {
        return this.pidValue;
    }

    public String getCondition() {
        return this.condition;
    }

    private String getQuerySql() {
        StringBuffer stringBuffer = new StringBuffer();
        String str = " ";
        stringBuffer.append("SELECT ");


        return null;
    }
}
